import request from '@/utils/request'

export function getEleAPI(selectTime) {
  return request({
    url: '/t.iot/TElectricityList?selectTime='+selectTime,
    headers: {
      isToken: false
    },
    method: 'get'
  })
}
export function getEleDataAPI() {
  return request({
    url: '/t.iot/TElectricityData',
    headers: {
      isToken: false
    },
    method: 'get'
  })
}
//设备状态
export function getStateList(id) {
  return request({
    url: '/device/limitQuery?id='+id,
    headers: {
      isToken: false
    },
    method: 'get'
  })
}